package com.gz.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户答题结果详情表(UserAnswers)实体类
 *
 * @author makejava
 * @since 2024-05-27 15:40:59
 */
@Data
@ApiModel("用户答题结果详情实体类")
public class UserAnswers implements Serializable {
    private static final long serialVersionUID = 830101050993047160L;
    private Integer id;
    @ApiModelProperty("答案id")
    private Integer answerId;
    @ApiModelProperty("题目id")
    private Integer questionId;
    @ApiModelProperty("用户答案")
    private String userAnswer;
    @ApiModelProperty("是否正确 1:正确 0:错误 2:空")
    private Integer isCorrect;
    @ApiModelProperty("题目总分")
    private Double totalScore;
    @ApiModelProperty("提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitTime;
    @ApiModelProperty("题目答案")
    private String questionAnswer;
    @ApiModelProperty("学生得分")
    private BigDecimal getScore;

}

